<html>
<a href="frm_tugas.php">Kembali</a>

<?php
echo "<br><br>";

$brs   = $_POST['txt_baris'];
$bil_1 = 0;
$bil_2 = 1;

$cari = $brs - 2;

echo $bil_1."<br>";
echo $bil_2."<br>";

for($i=1; $i<=$cari; $i++)
{
$hasil = $bil_1 + $bil_2;
$bil_1 = $bil_2;
$bil_2 = $hasil;


echo $hasil."<br>";

}
echo "Hasil Bilangan Fibonanci Dari baris ke-$brs adalah : $hasil";



?>
</html>